package com.xinlong.dao;

import com.xinlong.entity.Route;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

public interface RouteMapper {
    /**
     * 根据ID查询路线信息
     * @param id
     * @return
     */
    @Select("select * from route where productid = #{0}")
    Route selById(Integer id);

    /**
     * 根据产品Id删除路线
     * @param id
     * @return
     */
    @Delete("delete from route where productid = #{0}")
    int delByPid(Integer id);

}
